local skill = fk.CreateSkill{
    name = "#SP_heg__qiaoen_choose&",
}

Fk:loadTranslationTable{
    ["#SP_heg__qiaoen_choose&"] = "巧恩",

    ["heg__qiaoen_tip_1"] = "目标1",
    ["heg__qiaoen_tip_2"] = "目标2",
}

local H = require "packages.ol_hegemony.util"

skill:addEffect("active",{
    can_use = Util.FalseFunc,
    target_num = 2,
    card_num = 0,
    card_filter  = Util.FalseFunc,
    target_filter = function (self, player, to_select, selected, selected_cards)
    if #selected < 2 then
      if #selected == 0 then
        return true
      else
        return H.compareKingdomWith(to_select, selected[1])
        end
      end
    end,
    target_tip = function(self, _, to_select, selected, _, _, selectable, _)
      if not selectable then return end
      if #selected == 0 or (#selected > 0 and selected[1] == to_select) then
        return "heg__qiaoen_tip_1"
      else
        return "heg__qiaoen_tip_2"
      end
    end,
})

return skill